<template>
  <!-- 编辑地址 -->
  <el-dialog destroy-on-close append-to-body :visible.sync="show" width="600px" :before-close="cancel">
    <template #title>
      <div style="color: red; font-weight: bold;text-align: center;">{{ $t('重复提示警告') }}</div>
    </template>
    <div>
      <p v-for="item in formData">
        {{ item }}
      </p>
    </div>
    <div slot="footer" class="dialog-footer">
      <el-button @click="cancel" type="primary">
        {{ $t('关闭') }}
      </el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  props: {
    formData: {
      type: Array,
      default: () => [],
    },
    /**
     * 控制显示隐藏
     */
    show: {
      type: Boolean,
      required: true,
      default: false,
    },
  },
  data() {
    return {}
  },
  watch: {
    show: function (newValue) {
      if (newValue) {
      }
    },
  },
  methods: {
    cancel() {
      this.$emit('update:show', false)
    },
  },
}
</script>
<style scoped lang="scss"></style>
